import Vue from 'vue';
import Vuex from 'vuex';
import actions from './actions';
import getters from './getters';
import mutations from './mutations';

// 引入vuex模块
import global_module from './modules/global';
import user_module from './modules/user';

Vue.use(Vuex);

// 全局状态
const state = {};

export default new Vuex.Store({
  modules: {
    user_module,
    global_module,
  },
  actions,
  getters,
  mutations,
});
